package chp05;

public class Test4 {

    public static void main(String[] args) {
        int i = 1;
        while (i <= 10){
            System.out.println(i);
            i++;
            if(i == 5) {
                //break 跳出当前循环
                break;
            }
        }
    }
}
